package com.rdtravel.services;

import com.rdtravel.entities.DepartureLocation;

import java.util.List;

/**
 * Services for {@link com.rdtravel.entities.DepartureLocation} Entities
 * 
 * @author Hans
 * 
 */

public interface DepartureLocationsService {
	/**
	 * 
	 * @param term
	 *            the term with which te name should start of the
	 *            {@link com.rdtravel.entities.DepartureLocation}s to find
	 * @return the {@link com.rdtravel.entities.DepartureLocation}s with a name
	 *         which starts with this term<br/>
	 */

	List<String> findNamesStartingWith(String term);

	/**
	 * 
	 * @param name
	 *            the name of the
	 *            {@link com.rdtravel.entities.DepartureLocation} to find
	 * @return the {@link com.rdtravel.entities.DepartureLocation} with this
	 *         name<br/>
	 *         <code>null</code> if no
	 *         {@link com.rdtravel.entities.DepartureLocation} with this name is
	 *         found
	 */
	DepartureLocation findByName(String name);
}
